// 货代公司
import request from "@/utils/https/requests";
// 列表
export function freightForwardingList(data: any) {
  return request({
    url: "/freightForwarding/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddFreightForwarding(data: any) {
  return request({
    url: "/freightForwarding/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModFreightForwarding(data: any) {
  return request({
    url: `/freightForwarding/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function freightForwardingDetail(id: string) {
  return request({
    url: `/freightForwarding/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteFreightForwarding(id: string) {
  return request({
    url: `/freightForwarding/postDelete/${id}`,
    method: "post",
  });
}
